"""写入文件"""
file_name = '..\\txt\\pi_digits.txt'
with open(file_name, 'a') as file_object:
    file_object.write("I love python.\n")
    file_object.write("I love java.\n")
